package com.googlecode.bip.entity.impl;

import java.sql.Timestamp;

import com.googlecode.bip.entity.ISurveyMetaData;

public class SurveyMetaData implements ISurveyMetaData {

    private Timestamp userDate;
    private int numberOfQuestions;
    private int numberOfAnswers;
    
    // REQUIRED FOR JSON !
    public SurveyMetaData()
    {
        
    }
    
    public SurveyMetaData(Timestamp userDate)
    {
        this.userDate = userDate;
    }

    @Override
    public boolean isIQuestion() {
        return false;
    }

    @Override
    public boolean isITopic() {
        return false;
    }

    @Override
    public boolean isISurveyMetaData()
    {
        return true;
    }

    @Override
    public Timestamp getUserDate() {
        return userDate;
    }

    @Override
    public void setUserDate(Timestamp date) {
        this.userDate = date;
    }

    public int getNumberOfQuestions() {
        return numberOfQuestions;
    }

    public void setNumberOfQuestions(int numberOfQuestions) {
        this.numberOfQuestions = numberOfQuestions;
    }

    public int getNumberOfAnswers() {
        return numberOfAnswers;
    }

    public void setNumberOfAnswers(int numberOfAnswers) {
        this.numberOfAnswers = numberOfAnswers;
    }

}
